package com.aspose.cells;

import java.util.ArrayList;

class zayt extends zbz {
   private short a;
   private zamq d;
   private zamr e;

   public zayt() {
      this.c(2150);
      this.a = 14;
   }

   void a(WorksheetCollection var1, zra var2) {
      this.d = new zamq(var1, this.a);
      this.d.a(var2);
   }

   void b(zqa var1) throws Exception {
      int var2 = this.d.a == null ? this.d.d() : (Integer)this.d.a.get(0);
      var1.a(this.f());
      var1.a((short)(var2 + this.a));
      byte[] var3 = new byte[this.a];
      var3[0] = 102;
      var3[1] = 8;
      var3[12] = 2;
      var1.a(var3);
      var1.a(this.d.e(), var2);
      ArrayList var4 = this.d.a();
      if (var4 != null) {
         var3[12] = 6;

         for(int var5 = 0; var5 < var4.size(); ++var5) {
            byte[] var6 = (byte[])((byte[])var4.get(var5));
            if (var5 + 1 < this.d.a.size()) {
               var2 = (Integer)this.d.a.get(var5 + 1);
            } else {
               var2 = var6.length;
            }

            var1.a(this.f());
            var1.a((short)(var2 + this.a));
            var1.a(var3);
            var1.a(var6);
         }
      }

   }

   void a(ShapeCollection var1) {
      this.e = new zamr((zant)null);
      this.e.a(var1);
   }

   void c(zqa var1) throws Exception {
      var1.a(this.f());
      var1.a((short)(this.e.d + this.a));
      byte[] var2 = new byte[this.a];
      var2[0] = 102;
      var2[1] = 8;
      var2[12] = 1;
      var1.a(var2);
      var1.a(this.e.e());
   }
}
